package cn.hwh.springframework.beans.factory.support;

import cn.hwh.springframework.beans.factory.config.BeanDefinition;

/**
 * @author wenhao hu
 * @title: BeanDefinitionRegistry
 * @projectName mini-spring
 * @description: TODO
 * @date 2022/1/2411:53
 */
public interface BeanDefinitionRegistry {

    /**
     * 向注册表中注册 BeanDefinition
     *
     * @param beanName
     * @param beanDefinition
     */
    void registerBeanDefinition(String beanName, BeanDefinition beanDefinition);

    /**
     * 查看注册表内是否有这个bean
     * @param beanName
     * @return
     */
    public boolean containsBeanDefinition(String beanName);
}